# @Author：silence
# @Email：792245022@qq.com
# @Date：2025/1/2 1:57

# 1）赋值运算符案例
num1: int = 10
i: int = 100
i += 100
print(f"i = {i}")
print("=================================")

i -= 100
print(f"i = {i}")
print("=================================")

i *= 3
print(f"i = {i}")
print("=================================")

"""
    在 python 中支持一个简单的方式实现变量交换
    x, y = y, x
"""
x: int = 10
y: int = 20
print(f"没有交换前：x = {x}, y = {y}")
x, y = y, x
print(f"交换后：x = {x}, y = {y}")